package org.example.bumenguanli.controller;

import lombok.extern.slf4j.Slf4j;
import org.example.bumenguanli.pojo.EmpQueryParam;
import org.example.bumenguanli.pojo.PageResult;
import org.example.bumenguanli.pojo.Result;
import org.example.bumenguanli.service.EmpService;
import org.example.bumenguanli.service.OperateLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class OperateLogController {

    @Autowired
    private OperateLogService operateLogService;


    @GetMapping("/log/page")
    public Result page(EmpQueryParam empQueryParam) {
        log.info("查询请求参数： {}", empQueryParam);
        PageResult pageResult = operateLogService.page(empQueryParam);
        return Result.success(pageResult);
    }




}
